AddProperty
TheAddProperty
method adds a property with the specified name to the storage unit that created this storage-unit view.
ODStorageUnitView AddProperty ( in ODPropertyName propertyName);
propertyName
- The name of the property to be added.
- return value
- A reference to this storage-unit view.
DISCUSSION
If the storage unit that created this storage-unit view does not already contain a property with the specified name, the new property is added and the storage unit is focused on the newly added property. Otherwise, the storage unit is focused on the existing property with the specified name.The focus context of this storage-unit view remains unchanged.
EXCEPTIONS
If the storage-unit cursor for this storage-unit view does not represent a legal focus context for the storage unit that created this storage-unit view, this method throws exceptions raised by the
kODErrCannotAddProperty
- Cannot add the specified property to the storage unit that created this storage-unit view.
kODErrIllegalNullPropertyInput
- The specified property name is null.
FocusWithCursor
method of that storage unit.SEE ALSO
TheODPropertyName
type (page 904).
TheODStorageUnitView::GetProperty
method (page 741).
TheODStorageUnitView::Remove
method (page 754).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help